package com.hcms.admin.dto;

import cn.hutool.core.bean.BeanUtil;
import com.hcms.mybatis.entity.SysAdmin;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysAdminOptionResponse implements Serializable {

    private Long id;

    private String username;

    private String nickName;

    public SysAdminOptionResponse(SysAdmin sysAdmin) {
        BeanUtil.copyProperties(sysAdmin, this);
    }

}
